package io.devops;



def getCode(srcUrl, branchName){
    echo 'code init.....'

        checkout([$class: 'GitSCM', 
            branches: [[name: "${branchName}"]], 
            doGenerateSubmoduleConfigurations: false, 
            extensions: [
                [
                    $class: 'CloneOption', 
                    depth: 1, 
                    reference: '', 
                    shallow: true, 
                    timeout: 60
                ],
                
            ], 
            submoduleCfg: [], 
            userRemoteConfigs: [[credentialsId: "7778991c-e082-4374-b401-9acf2367320a", 
            url: "${srcUrl}"]]])
}
